package com.financial.service.heemoney.convertor;

import com.financial.service.heemoney.dto.HeemoneyConfigDTO;
import com.financial.service.heemoney.dto.businsess.HeemoneyPayQueryBusinessDTO;
import com.financial.service.heemoney.dto.commmon.HeemoneyPayQueryCommonDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyPayInParamDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyPayQueryInParamDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: wenguoqiang
 * @Email wguoqiango@163.com
 * @Date: 2019/12/5 0005 下午 10:51
 * @Des
 */
@Mapper
public interface HeemoneyPayQueryConvert {

    HeemoneyPayQueryConvert MAPPER = Mappers.getMapper(HeemoneyPayQueryConvert.class);

    @Mapping(target = "method", source = "heemoneyConfigDTO.heemoneyPay.method")
    @Mapping(target = "key",source ="heemoneyConfigDTO.heemoneyPayType.key")
    HeemoneyPayQueryCommonDTO configConvertCommonDTO(HeemoneyConfigDTO heemoneyConfigDTO,HeemoneyPayQueryInParamDTO heemoneyPayQueryInParamDTO);


    HeemoneyPayQueryBusinessDTO converBusinessDTO(HeemoneyPayQueryInParamDTO heemoneyPayQueryInParamDTO);
}
